import i18n from '@/lang'
export const flowReportTbColumns = [
  // VIN
  {
    title: 'VIN',
    dataIndex: 'vin',
    width: 144,
    key: 'vin',
    scopedSlots: { customRender: 'vin' },
    special: false
  },
  // 车型代码
  {
    title: i18n.t('modelCode'),
    dataIndex: 'modelCode',
    width: 120,
    key: 'modelCode',
    scopedSlots: { customRender: 'modelCode' },
    special: false
  },
  // 车型名称
  {
    title: i18n.t('modelName'),
    dataIndex: 'modelName',
    width: 120,
    key: 'modelName',
    scopedSlots: { customRender: 'modelName' },
    special: false
  },
  // 款型名称
  {
    title: i18n.t('stereotype'),
    dataIndex: 'modelTrimLevel',
    width: 120,
    key: 'modelTrimLevel',
    scopedSlots: { customRender: 'modelTrimLevel' },
    special: false
  },
  // 任务名称
  {
    title: i18n.t('campaignName'),
    dataIndex: 'taskName',
    width: 144,
    key: 'taskName',
    scopedSlots: { customRender: 'taskName' },
    special: false
  },
  // 流量信号
  {
    title: i18n.t('llxh'),
    dataIndex: 'flowNetwork',
    width: 80,
    key: 'flowNetwork',
    scopedSlots: { customRender: 'flowNetwork' },
    special: true
  },
  // 流量
  {
    title: i18n.t('netflow') + '(MB)',
    dataIndex: 'flowSize',
    width: 120,
    key: 'flowSize',
    scopedSlots: { customRender: 'flowSize' },
    sorter: true,
    special: false
  },
  // 月份
  {
    title: i18n.t('monthNum'),
    width: 80,
    key: 'monthNum',
    scopedSlots: { customRender: 'monthNum' },
    special: true
  },
  // 开始时间
  {
    title: i18n.t('startTime'),
    dataIndex: 'flowStartTime',
    width: 160,
    key: 'flowStartTime',
    scopedSlots: { customRender: 'flowStartTime' },
    sorter: true,
    special: true
  },
  // 结束时间
  {
    title: i18n.t('endTime'),
    dataIndex: 'flowEndTime',
    width: 160,
    key: 'flowEndTime',
    scopedSlots: { customRender: 'flowEndTime' },
    sorter: true,
    special: true
  },
  // 操作
  {
    title: i18n.t('operation'),
    key: 'operation',
    scopedSlots: { customRender: 'operation' },
    width: 80,
    fixed: 'right',
    special: true
  }
]
// 流量信号类型
export const flowNetworkList = [
  {
    value: 1,
    name: '4G'
  },
  {
    value: 2,
    name: '5G'
  },
  {
    value: 3,
    name: 'WIFI'
  },
  {
    value: 4,
    name: i18n.t('other')
  }
]
// 流量详情

export const flowDetailTbColumns = [
  // ECU ID
  {
    title: 'ECU ID',
    dataIndex: 'ecuId',
    width: 144,
    key: 'ecuId',
    scopedSlots: { customRender: 'ecuId' },
    special: false
  },
  // ECU名称
  {
    title: i18n.t('ecuName'),
    dataIndex: 'ecuName',
    width: 120,
    key: 'ecuName',
    scopedSlots: { customRender: 'ecuName' },
    special: false
  },
  // 原始版本号
  {
    title: i18n.t('originVersion'),
    dataIndex: 'ecuOriginSVer',
    width: 120,
    key: 'ecuOriginSVer',
    scopedSlots: { customRender: 'ecuOriginSVer' },
    special: false
  },
  // 目标版本号
  {
    title: i18n.t('targetVersionNum'),
    dataIndex: 'ecuSoftVer',
    width: 120,
    key: 'ecuSoftVer',
    scopedSlots: { customRender: 'ecuSoftVer' },
    special: false
  },
  // 流量
  {
    title: i18n.t('netflow') + ' (MB)',
    dataIndex: 'flowSize',
    width: 144,
    key: 'flowSize',
    scopedSlots: { customRender: 'flowSize' },
    special: false
  }
]
